<template>
  <hover-container
    size="w-40 h-full"
    tooltip-content="全屏"
    :inverted="theme.header.inverted"
    @click="toggle"
  >
    <icon-gridicons-fullscreen-exit v-if="isFullscreen" text-18 />
    <icon-gridicons-fullscreen v-else text-18 />
  </hover-container>
</template>

<script lang="ts" setup>
import { useFullscreen } from "@vueuse/core";
import { useThemeStore } from "@/store";

const { isFullscreen, toggle } = useFullscreen();
const theme = useThemeStore();
</script>

<style scoped></style>
